package com.aaa.java05;

import javax.swing.text.TabableView;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/6 16:54
 * @description：
 * @modified By：
 * @version:
 */
public class TestValue {
    public static void add(int a, int b){
        a += 1;
        b += 2;
    }
    public static void addAge(Teacher teacher){
        teacher.age+=1;
    }

    public static void main(String[] args) {
     /*   int a = 10;
        int b = 20;
        add(a, b);


        System.out.println("a=" + a + " b=" + b);*/

     Teacher teacher = new Teacher();
     teacher.age=38;
     teacher.name="陈建";
        System.out.println("年龄："+teacher.age);
        addAge(teacher);
        System.out.println("年龄："+teacher.age);
    }


}
